import request from '@/utils/request'

// 查询MQ实例列表
export function listInstance(query) {
  return request({
    url: '/mq/instance/list',
    method: 'get',
    params: query
  })
}

// 查询MQ实例详细
export function getInstance(id) {
  return request({
    url: '/mq/instance/' + id,
    method: 'get'
  })
}

// 新增MQ实例
export function addInstance(data) {
  return request({
    url: '/mq/instance',
    method: 'post',
    data: data
  })
}

// 修改MQ实例
export function updateInstance(data) {
  return request({
    url: '/mq/instance',
    method: 'put',
    data: data
  })
}

// 删除MQ实例
export function delInstance(id) {
  return request({
    url: '/mq/instance/' + id,
    method: 'delete'
  })
}
